package com.xr.miniprogram.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xr.common.annotation.Excel;
import com.xr.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 协议对象 mp_agreement
 * 
 * @author wls
 * @date 2023-12-15
 */
@Data
@TableName("mp_agreement")
public class MiniProgramAgreement
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long agreementId;

    /** 名称 */
    @Excel(name = "名称")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 类别 */
    @Excel(name = "类别")
    private Long type;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 是否显示全部数据 */
    @TableField(exist = false)
    private Long showAll;

}
